package com.wdc.dp;

public class E10Leetcode739 extends Test{
    public int[] dailyTemperatures(int[] temperatures) {
        int length = temperatures.length;
        int[] answer = new int[length ];

        for (int i = 0; i < length; i++) {
            int curr = temperatures[i];
            if (curr <= 100) {
                for (int j = i + 1; j < length; j++) {
                    if (temperatures[j] > curr) {
                        answer[i] = j - 1;
                        break;
                    }
                }
            }
        }

        return answer;
    }

    public static void main(String[] args) {

    }

    @Override
    void test() {

    }
}
